//
//  UsViewController.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/6/3.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "UsViewController.h"

@interface UsViewController ()

@end

@implementation UsViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64);
    self.view.backgroundColor = [UIColor orangeColor];

    UIImageView *imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64)];
    imageV.image = [UIImage imageNamed:@"beijingtu8"];
    [self.view addSubview:imageV];
    [imageV release];

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(0, 0, 50, 50);
    UIImage *image = [UIImage imageNamed:@"fanhui"];
    [button setImage:image forState:UIControlStateNormal];
    [self.view addSubview:button];
    [button addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    button.backgroundColor = [UIColor clearColor];


    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(30, 230, 260, 200)];
    label.backgroundColor = [UIColor clearColor];
    label.text = @"Fragrance是一款关于美食的应用,这款应用集各种美食 美食制作步骤于一体.你若是吃货，拥有此应用你就拥有了天堂,你还可以亲自动手制作你喜欢的美食，犒劳忙碌了一天的自己。你还可以将你的美食分享给好友,同时可以收藏你喜欢的美食.";
    label.textColor = [UIColor blueColor];
    label.numberOfLines = 10;
    [label sizeToFit];
    [self.view addSubview:label];
    [label release];
    
    UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(30, self.view.frame.size.height - 60, 260, 30)];
    label1.backgroundColor = [UIColor clearColor];
    label1.text = @"Copyright©食传食 2015";
    label1.textAlignment = 1;
    label1.textColor = [UIColor lightGrayColor];
    label1.font = [UIFont systemFontOfSize:10.0];
    [self.view addSubview:label1];
    [label1 release];
    
    
    
    UILabel *label2 = [[UILabel alloc] initWithFrame:CGRectMake(30, self.view.frame.size.height - 30, 260, 20)];
    label2.backgroundColor = [UIColor clearColor];
    label2.text = @"All Rights Reserved";
    label2.textAlignment = NSTextAlignmentCenter;
    label2.textColor = [UIColor lightGrayColor];
    label2.font = [UIFont systemFontOfSize:10.0];
    [self.view addSubview:label2];
    [label2 release];
    
}

- (void)back
{
    
[self dismissViewControllerAnimated:YES completion:^{
    
}];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
